package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class Answer extends BaseDomain{
    //回答人
    private User user;
    //问题
    private Question question;
    //创建时间
    @JsonFormat(pattern = "y-M-d",timezone = "GMT+8")
    @DateTimeFormat(pattern = "y-M-d")
    private Date createTime;
    //回答的详情
    private String content;
    //答案评论的数量
    private Integer commentCount;
}